﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QlrrPrintService.Common.Command;

namespace QlrrPrintService.Print
{
    public class PrintErrorEventArgs:EventArgs
    {
        public PrintErrorEventArgs()
            : base()
        { }

        public PrintErrorEventArgs(PrintPaper printPaper, string errorMsg)
        {
            _errorMsg = errorMsg;
            _printPaper = printPaper;
        }

        private PrintPaper _printPaper;

        public PrintPaper PrintPaper
        {
            get { return _printPaper; }
            set { _printPaper = value; }
        }

        private string _errorMsg;

        public string ErrorMsg
        {
            get { return _errorMsg; }
            set { _errorMsg = value; }
        }
    }

    public delegate void OnPrintError(object sender, PrintErrorEventArgs e);
}
